package com.suixun.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import com.suixun.util.DateUtil;

public class DeviceInfo implements Serializable {
    private Integer id;
    private String holdname;
    private String mdtid;
    private String cardid;
    private BigDecimal fee;
    private BigDecimal fee2;
    private Integer status;
    private Boolean isinit;
    private Integer sellerid;
    private String telephone;
    private Date addtime;
    private Date updatetime;
    private Integer devicetype;
    private Date endtime;
    private String schoolname;
    private Byte imeimask;
    private BigDecimal purchaseprice;
    private static final long serialVersionUID = 1L;
    private String factory;
    private Date starttime;
    private Integer paystatus;
    private String batchid;
    private String boxid;
    private String imei;
    private String ids; //需要操作的多个id，之间以逗号分隔
    private Integer schoolid; //学校id
    private Integer devicecounts; //装箱量
    private String puttype; //投放类型 1-按箱号，其他按设备
    private String putstatus;//投放状态1卫小宝2其他设备
    private String devicetypename;
    private String modifytype;
    private String tablename;
    private String createtime; 
    private String devicepackage;//设备套餐：1年，2年
    private String simid;
    private Integer jxtBabyId;
    private String studentname;
    
    public String getModifytype() {
		return modifytype;
	}

	public void setModifytype(String modifytype) {
		this.modifytype = modifytype;
	}

	public String getDevicetypename() {
    	return devicetypename;
	}

	public void setDevicetypename(String devicetypename) {
		this.devicetypename = devicetypename;
	}

	public String getPuttype() {
		return puttype;
	}

	public void setPuttype(String puttype) {
		this.puttype = puttype;
	}

	public Integer getDevicecounts() {
		return devicecounts;
	}

	public void setDevicecounts(Integer devicecounts) {
		this.devicecounts = devicecounts;
	}

	private String starttimestring; //用于界面显示的日期值
    private String endtimestring;

	public String getStarttimestring() {
		return starttimestring;
	}

	public void setStarttimestring(String starttimestring) {
		this.starttimestring = starttimestring;
	}

	public String getEndtimestring() {
		return endtimestring;
	}

	public void setEndtimestring(String endtimestring) {
		this.endtimestring = endtimestring;
	}

	public Integer getSchoolid() {
		return schoolid;
	}

	public void setSchoolid(Integer schoolid) {
		this.schoolid = schoolid;
	}

	public String getIds() {
		return ids;
	}

	public void setIds(String ids) {
		this.ids = ids;
	}

	public String getImei() {
		return imei;
	}

	public void setImei(String imei) {
		this.imei = imei;
	}

	public String getBatchid() {
		return batchid;
	}

	public void setBatchid(String batchid) {
		this.batchid = batchid;
	}

	public String getBoxid() {
		return boxid;
	}

	public void setBoxid(String boxid) {
		this.boxid = boxid;
	}

	public String getFactory() {
		return factory;
	}

	public void setFactory(String factory) {
		this.factory = factory;
	}

	public Date getStarttime() {
		return starttime;
	}

	public void setStarttime(Date starttime) {
		this.starttime = starttime;
		this.starttimestring=DateUtil.formatDateToString(starttime, "");
	}

	public Integer getPaystatus() {
		return paystatus;
	}

	public void setPaystatus(Integer paystatus) {
		this.paystatus = paystatus;
	}

	/**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column devicelists.id
     *
     * @return the value of devicelists.id
     *
     * @mbggenerated Fri Aug 26 15:12:13 CST 2016
     */
    public Integer getId() {
        return id;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column devicelists.id
     *
     * @param id the value for devicelists.id
     *
     * @mbggenerated Fri Aug 26 15:12:13 CST 2016
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column devicelists.holdname
     *
     * @return the value of devicelists.holdname
     *
     * @mbggenerated Fri Aug 26 15:12:13 CST 2016
     */
    public String getHoldname() {
        return holdname;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column devicelists.holdname
     *
     * @param holdname the value for devicelists.holdname
     *
     * @mbggenerated Fri Aug 26 15:12:13 CST 2016
     */
    public void setHoldname(String holdname) {
        this.holdname = holdname == null ? null : holdname.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column devicelists.mdtid
     *
     * @return the value of devicelists.mdtid
     *
     * @mbggenerated Fri Aug 26 15:12:13 CST 2016
     */
    public String getMdtid() {
        return mdtid;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column devicelists.mdtid
     *
     * @param mdtid the value for devicelists.mdtid
     *
     * @mbggenerated Fri Aug 26 15:12:13 CST 2016
     */
    public void setMdtid(String mdtid) {
        this.mdtid = mdtid == null ? null : mdtid.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column devicelists.cardid
     *
     * @return the value of devicelists.cardid
     *
     * @mbggenerated Fri Aug 26 15:12:13 CST 2016
     */
    public String getCardid() {
        return cardid;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column devicelists.cardid
     *
     * @param cardid the value for devicelists.cardid
     *
     * @mbggenerated Fri Aug 26 15:12:13 CST 2016
     */
    public void setCardid(String cardid) {
        this.cardid = cardid == null ? null : cardid.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column devicelists.fee
     *
     * @return the value of devicelists.fee
     *
     * @mbggenerated Fri Aug 26 15:12:13 CST 2016
     */
    public BigDecimal getFee() {
        return fee;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column devicelists.fee
     *
     * @param fee the value for devicelists.fee
     *
     * @mbggenerated Fri Aug 26 15:12:13 CST 2016
     */
    public void setFee(BigDecimal fee) {
        this.fee = fee;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column devicelists.fee2
     *
     * @return the value of devicelists.fee2
     *
     * @mbggenerated Fri Aug 26 15:12:13 CST 2016
     */
    public BigDecimal getFee2() {
        return fee2;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column devicelists.fee2
     *
     * @param fee2 the value for devicelists.fee2
     *
     * @mbggenerated Fri Aug 26 15:12:13 CST 2016
     */
    public void setFee2(BigDecimal fee2) {
        this.fee2 = fee2;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column devicelists.status
     *
     * @return the value of devicelists.status
     *
     * @mbggenerated Fri Aug 26 15:12:13 CST 2016
     */
    public Integer getStatus() {
        return status;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column devicelists.status
     *
     * @param status the value for devicelists.status
     *
     * @mbggenerated Fri Aug 26 15:12:13 CST 2016
     */
    public void setStatus(Integer status) {
        this.status = status;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column devicelists.isinit
     *
     * @return the value of devicelists.isinit
     *
     * @mbggenerated Fri Aug 26 15:12:13 CST 2016
     */
    public Boolean getIsinit() {
        return isinit;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column devicelists.isinit
     *
     * @param isinit the value for devicelists.isinit
     *
     * @mbggenerated Fri Aug 26 15:12:13 CST 2016
     */
    public void setIsinit(Boolean isinit) {
        this.isinit = isinit;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column devicelists.sellerid
     *
     * @return the value of devicelists.sellerid
     *
     * @mbggenerated Fri Aug 26 15:12:13 CST 2016
     */
    public Integer getSellerid() {
        return sellerid;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column devicelists.sellerid
     *
     * @param sellerid the value for devicelists.sellerid
     *
     * @mbggenerated Fri Aug 26 15:12:13 CST 2016
     */
    public void setSellerid(Integer sellerid) {
        this.sellerid = sellerid;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column devicelists.telephone
     *
     * @return the value of devicelists.telephone
     *
     * @mbggenerated Fri Aug 26 15:12:13 CST 2016
     */
    public String getTelephone() {
        return telephone;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column devicelists.telephone
     *
     * @param telephone the value for devicelists.telephone
     *
     * @mbggenerated Fri Aug 26 15:12:13 CST 2016
     */
    public void setTelephone(String telephone) {
    	this.telephone = telephone;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column devicelists.addtime
     *
     * @return the value of devicelists.addtime
     *
     * @mbggenerated Fri Aug 26 15:12:13 CST 2016
     */
    public Date getAddtime() {
        return addtime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column devicelists.addtime
     *
     * @param addtime the value for devicelists.addtime
     *
     * @mbggenerated Fri Aug 26 15:12:13 CST 2016
     */
    public void setAddtime(Date addtime) {
        this.addtime = addtime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column devicelists.updatetime
     *
     * @return the value of devicelists.updatetime
     *
     * @mbggenerated Fri Aug 26 15:12:13 CST 2016
     */
    public Date getUpdatetime() {
        return updatetime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column devicelists.updatetime
     *
     * @param updatetime the value for devicelists.updatetime
     *
     * @mbggenerated Fri Aug 26 15:12:13 CST 2016
     */
    public void setUpdatetime(Date updatetime) {
        this.updatetime = updatetime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column devicelists.devicetype
     *
     * @return the value of devicelists.devicetype
     *
     * @mbggenerated Fri Aug 26 15:12:13 CST 2016
     */
    public Integer getDevicetype() {
        return devicetype;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column devicelists.devicetype
     *
     * @param devicetype the value for devicelists.devicetype
     *
     * @mbggenerated Fri Aug 26 15:12:13 CST 2016
     */
    public void setDevicetype(Integer devicetype) {
        this.devicetype = devicetype;
        if(2==devicetype){
	    	devicetypename= "智能学生证";
	    }
	    else if(3==devicetype){
    		devicetypename= "考勤卡";
	    }	
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column devicelists.endtime
     *
     * @return the value of devicelists.endtime
     *
     * @mbggenerated Fri Aug 26 15:12:13 CST 2016
     */
    public Date getEndtime() {
        return endtime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column devicelists.endtime
     *
     * @param endtime the value for devicelists.endtime
     *
     * @mbggenerated Fri Aug 26 15:12:13 CST 2016
     */
    public void setEndtime(Date endtime) {
        this.endtime = endtime;
        this.endtimestring=DateUtil.formatDateToString(endtime, "");
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column devicelists.schoolname
     *
     * @return the value of devicelists.schoolname
     *
     * @mbggenerated Fri Aug 26 15:12:13 CST 2016
     */
    public String getSchoolname() {
        return schoolname;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column devicelists.schoolname
     *
     * @param schoolname the value for devicelists.schoolname
     *
     * @mbggenerated Fri Aug 26 15:12:13 CST 2016
     */
    public void setSchoolname(String schoolname) {
        this.schoolname = schoolname == null ? null : schoolname.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column devicelists.imeimask
     *
     * @return the value of devicelists.imeimask
     *
     * @mbggenerated Fri Aug 26 15:12:13 CST 2016
     */
    public Byte getImeimask() {
        return imeimask;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column devicelists.imeimask
     *
     * @param imeimask the value for devicelists.imeimask
     *
     * @mbggenerated Fri Aug 26 15:12:13 CST 2016
     */
    public void setImeimask(Byte imeimask) {
        this.imeimask = imeimask;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column devicelists.purchaseprice
     *
     * @return the value of devicelists.purchaseprice
     *
     * @mbggenerated Fri Aug 26 15:12:13 CST 2016
     */
    public BigDecimal getPurchaseprice() {
        return purchaseprice;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column devicelists.purchaseprice
     *
     * @param purchaseprice the value for devicelists.purchaseprice
     *
     * @mbggenerated Fri Aug 26 15:12:13 CST 2016
     */
    public void setPurchaseprice(BigDecimal purchaseprice) {
        this.purchaseprice = purchaseprice;
    }

	public String getTablename() {
		return tablename;
	}

	public void setTablename(String tablename) {
		this.tablename = tablename;
	}

	public String getCreatetime() {
		return createtime;
	}

	public void setCreatetime(String createtime) {
		this.createtime = createtime;
	}

	public String getPutstatus() {
		return putstatus;
	}

	public void setPutstatus(String putstatus) {
		this.putstatus = putstatus;
	}

	public String getDevicepackage() {
		return devicepackage;
	}

	public void setDevicepackage(String devicepackage) {
		this.devicepackage = devicepackage;
	}

	public String getSimid() {
		return simid;
	}

	public void setSimid(String simid) {
		this.simid = simid;
	}

	public Integer getJxtBabyId() {
		return jxtBabyId;
	}

	public void setJxtBabyId(Integer jxtBabyId) {
		this.jxtBabyId = jxtBabyId;
	}

	public String getStudentname() {
		return studentname;
	}

	public void setStudentname(String studentname) {
		this.studentname = studentname;
	}
	
}